<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html >
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<base target="_top">
<title>M210 Memory management and up...</title>
<style type="text/css">
/* default css */
table {
font-size: 1em;
line-height: inherit;
}
tr {
text-align: left;
}
div, address, ol, ul, li, option, select {
margin-top: 0px;
margin-bottom: 0px;
}
p {
margin: 0px;
}
pre {
font-family: Courier New;
white-space: pre-wrap;
margin:0;
}
body {
margin: 6px;
padding: 0px;
font-family: Verdana, sans-serif;
font-size: 10pt;
background-color: #ffffff;
}
img {
-moz-force-broken-image-icon: 1;
}
@media screen {
html.pageview {
background-color: #f3f3f3 !important;
}
body {
min-height: 1100px;
counter-reset: __goog_page__;
}
* html body {
height: 1100px;
}
.pageview body {
border-top: 1px solid #ccc;
border-left: 1px solid #ccc;
border-right: 2px solid #bbb;
border-bottom: 2px solid #bbb;
width: 648px !important;
margin: 15px auto 25px;
padding: 40px 50px;
}
/* IE6 */
* html {
overflow-y: scroll;
}
* html.pageview body {
overflow-x: auto;
}
/* Prevent repaint errors when scrolling in Safari. This "Star-7" css hack
targets Safari 3.1, but not WebKit nightlies and presumably Safari 4.
That's OK because this bug is fixed in WebKit nightlies/Safari 4 :-). */
html*#wys_frame::before {
content: '\A0';
position: fixed;
overflow: hidden;
width: 0;
height: 0;
top: 0;
left: 0;
}
.writely-callout-data {
display: none;
*display: inline-block;
*width: 0;
*height: 0;
*overflow: hidden;
}
.writely-footnote-marker {
background-image: url('images/footnote_doc_icon.gif');
background-color: transparent;
background-repeat: no-repeat;
width: 7px;
overflow: hidden;
height: 16px;
vertical-align: top;
-moz-user-select: none;
}
.editor .writely-footnote-marker {
cursor: move;
}
.writely-footnote-marker-highlight {
background-position: -15px 0;
-moz-user-select: text;
}
.writely-footnote-hide-selection ::-moz-selection, .writely-footnote-hide-selection::-moz-selection {
background: transparent;
}
.writely-footnote-hide-selection ::selection, .writely-footnote-hide-selection::selection {
background: transparent;
}
.writely-footnote-hide-selection {
cursor: move;
}
.editor .writely-comment-yellow {
background-color: #FF9;
background-position: -240px 0;
}
.editor .writely-comment-yellow-hover {
background-color: #FF0;
background-position: -224px 0;
}
.editor .writely-comment-blue {
background-color: #C0D3FF;
background-position: -16px 0;
}
.editor .writely-comment-blue-hover {
background-color: #6292FE;
background-position: 0 0;
}
.editor .writely-comment-orange {
background-color: #FFDEAD;
background-position: -80px 0;
}
.editor .writely-comment-orange-hover {
background-color: #F90;
background-position: -64px 0;
}
.editor .writely-comment-green {
background-color: #99FBB3;
background-position: -48px 0;
}
.editor .writely-comment-green-hover {
background-color: #00F442;
background-position: -32px 0;
}
.editor .writely-comment-cyan {
background-color: #CFF;
background-position: -208px 0;
}
.editor .writely-comment-cyan-hover {
background-color: #0FF;
background-position: -192px 0;
}
.editor .writely-comment-purple {
background-color: #EBCCFF;
background-position: -144px 0;
}
.editor .writely-comment-purple-hover {
background-color: #90F;
background-position: -128px 0;
}
.editor .writely-comment-magenta {
background-color: #FCF;
background-position: -112px 0;
}
.editor .writely-comment-magenta-hover {
background-color: #F0F;
background-position: -96px 0;
}
.editor .writely-comment-red {
background-color: #FFCACA;
background-position: -176px 0;
}
.editor .writely-comment-red-hover {
background-color: #FF7A7A;
background-position: -160px 0;
}
.editor .writely-comment-marker {
background-image: url('images/markericons_horiz.gif');
background-color: transparent;
padding-right: 11px;
background-repeat: no-repeat;
width: 16px;
height: 16px;
-moz-user-select: none;
}
.editor .writely-comment-hidden {
padding: 0;
background: none;
}
.editor .writely-comment-marker-hidden {
background: none;
padding: 0;
width: 0;
}
.editor .writely-comment-none {
opacity: .2;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=20);
-moz-opacity: .2;
}
.editor .writely-comment-none-hover {
opacity: .2;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=20);
-moz-opacity: .2;
}
.br_fix br:not(:-moz-last-node):not(:-moz-first-node) {
position:relative;
left: -1ex
}
.br_fix br+br {
position: static !important
}
}
h6 { font-size: 8pt }
h5 { font-size: 8pt }
h4 { font-size: 10pt }
h3 { font-size: 12pt }
h2 { font-size: 14pt }
h1 { font-size: 18pt }
blockquote {padding: 10px; border: 1px #DDD dashed }
a img {border: 0}
.pb {
border-width: 0;
page-break-after: always;
/* We don't want this to be resizeable, so enforce a width and height
using !important */
height: 1px !important;
width: 100% !important;
}
.editor .pb {
border-top: 1px dashed #C0C0C0;
border-bottom: 1px dashed #C0C0C0;
}
div.google_header, div.google_footer {
position: relative;
margin-top: 1em;
margin-bottom: 1em;
}
/* Table of contents */
.editor div.writely-toc {
background-color: #f3f3f3;
border: 1px solid #ccc;
}
.writely-toc > ol {
padding-left: 3em;
font-weight: bold;
}
ol.writely-toc-subheading {
padding-left: 1em;
font-weight: normal;
}
/* IE6 only */
* html writely-toc ol {
list-style-position: inside;
}
.writely-toc-none {
list-style-type: none;
}
.writely-toc-decimal {
list-style-type: decimal;
}
.writely-toc-upper-alpha {
list-style-type: upper-alpha;
}
.writely-toc-lower-alpha {
list-style-type: lower-alpha;
}
.writely-toc-upper-roman {
list-style-type: upper-roman;
}
.writely-toc-lower-roman {
list-style-type: lower-roman;
}
.writely-toc-disc {
list-style-type: disc;
}
/* Ordered lists converted to numbered lists can preserve ordered types, and
vice versa. This is confusing, so disallow it */
ul[type="i"], ul[type="I"], ul[type="1"], ul[type="a"], ul[type="A"] {
list-style-type: disc;
}
ol[type="disc"], ol[type="circle"], ol[type="square"] {
list-style-type: decimal;
}
/* end default css */
/* custom css */
/* end custom css */
/* ui edited css */
body {
font-family: Times New Roman;
font-size: 12.0pt;
line-height: normal;
background-color: #ffffff;
}
/* end ui edited css */
/* editor CSS */
.editor a:visited {color: #551A8B}
.editor table.zeroBorder {border: 1px dotted gray}
.editor table.zeroBorder td {border: 1px dotted gray}
.editor table.zeroBorder th {border: 1px dotted gray}
.editor div.google_header, .editor div.google_footer {
border: 2px #DDDDDD dashed;
position: static;
width: 100%;
min-height: 2em;
}
.editor .misspell {background-color: yellow}
.editor .writely-comment {
font-size: 9pt;
line-height: 1.4;
padding: 1px;
border: 1px dashed #C0C0C0
}
/* end editor CSS */
</style>
<style>
body {
margin: 0px;
}
#doc-contents {
margin: 6px;
}
#google-view-footer {
clear: both;
border-top: thin solid;
padding-top: 0.3em;
padding-bottom: 0.3em;
}
a.google-small-link:link, a.google-small-link:visited {
color:#112ABB;
font-family:Arial,Sans-serif;
font-size:11px !important;
}
body, p, div, td {
direction: inherit;
}
@media print {
#google-view-footer {
display: none;
}
}
</style>
<script>
function viewOnLoad() {
if (document.location.href.indexOf('spi=1') != -1) {
if (navigator.userAgent.toLowerCase().indexOf('msie') != -1) {
window.print();
} else {
window.setTimeout(window.print, 10);
}
}
if (document.location.href.indexOf('hgd=1') != -1) {
var footer = document.getElementById("google-view-footer");
if (footer) {
footer.style.display = 'none';
}
}
}
</script>
</head>
<body>
<div id="doc-contents">
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in"><B><U><FONT SIZE=4><font size="5">Memory
management and upload protocol</font></FONT></U></B></P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in">M210 device save notes
in flash memory.</P>
<P CLASS="western" STYLE="margin-bottom: 0in">Each note contain note
header and data (XY coordinates, Pen up)</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><FONT SIZE=4><U><B>Note
structure description:</B></U></FONT></P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><B><U>Note header:</U></B>
14 Bytes.</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<TABLE WIDTH=616 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=8 CELLSPACING=0>
<COL WIDTH=80>
<COL WIDTH=118>
<COL WIDTH=31>
<COL WIDTH=42>
<COL WIDTH=68>
<COL WIDTH=23>
<COL WIDTH=23>
<COL WIDTH=23>
<COL WIDTH=23>
<COL WIDTH=23>
<TR VALIGN=TOP>
<TD WIDTH=80>
<P CLASS="western">Byte number</P>
</TD>
<TD WIDTH=118>
<P CLASS="western" ALIGN=CENTER>Byte description</P>
</TD>
<TD WIDTH=31>
<P CLASS="western" ALIGN=CENTER>7</P>
</TD>
<TD WIDTH=42>
<P CLASS="western" ALIGN=CENTER>6</P>
</TD>
<TD WIDTH=68>
<P CLASS="western" ALIGN=CENTER>5</P>
</TD>
<TD WIDTH=23>
<P CLASS="western" ALIGN=CENTER>4</P>
</TD>
<TD WIDTH=23>
<P CLASS="western" ALIGN=CENTER>3</P>
</TD>
<TD WIDTH=23>
<P CLASS="western" ALIGN=CENTER>2</P>
</TD>
<TD WIDTH=23>
<P CLASS="western" ALIGN=CENTER>1</P>
</TD>
<TD WIDTH=23>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=80>
<P CLASS="western">1</P>
</TD>
<TD ROWSPAN=3 WIDTH=118>
<P CLASS="western">Pointer to next note address</P>
</TD>
<TD COLSPAN=8 WIDTH=368>
<P CLASS="western" ALIGN=CENTER>Low</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=80>
<P CLASS="western">2</P>
</TD>
<TD COLSPAN=8 WIDTH=368>
<P CLASS="western"><BR>
</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=80>
<P CLASS="western">3</P>
</TD>
<TD COLSPAN=8 WIDTH=368>
<P CLASS="western" ALIGN=CENTER>High</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=80>
<P CLASS="western">4</P>
</TD>
<TD WIDTH=118>
<P CLASS="western">Flags</P>
</TD>
<TD WIDTH=31>
<P CLASS="western" ALIGN=CENTER>Note open</P>
</TD>
<TD WIDTH=42>
<P CLASS="western" ALIGN=CENTER>Note closed</P>
</TD>
<TD WIDTH=68>
<P CLASS="western" ALIGN=CENTER>Note closed (software)</P>
</TD>
<TD WIDTH=23>
<P CLASS="western" ALIGN=CENTER>1</P>
</TD>
<TD WIDTH=23>
<P CLASS="western" ALIGN=CENTER>1</P>
</TD>
<TD WIDTH=23>
<P CLASS="western" ALIGN=CENTER>1</P>
</TD>
<TD WIDTH=23>
<P CLASS="western" ALIGN=CENTER>1</P>
</TD>
<TD WIDTH=23>
<P CLASS="western" ALIGN=CENTER>1</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=80>
<P CLASS="western">5</P>
</TD>
<TD WIDTH=118>
<P CLASS="western">Note number</P>
</TD>
<TD COLSPAN=8 WIDTH=368>
<P CLASS="western"><BR>
</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=80>
<P CLASS="western">6</P>
</TD>
<TD WIDTH=118>
<P CLASS="western">Total note number</P>
</TD>
<TD COLSPAN=8 WIDTH=368>
<P CLASS="western"><BR>
</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=80>
<P CLASS="western">7</P>
</TD>
<TD ROWSPAN=8 WIDTH=118>
<P CLASS="western">Reserved</P>
</TD>
<TD ROWSPAN=8 COLSPAN=8 WIDTH=368>
<P CLASS="western"><BR>
</P>
</TD>
</TR>
<TR>
<TD WIDTH=80 VALIGN=TOP>
<P CLASS="western">8</P>
</TD>
</TR>
<TR>
<TD WIDTH=80 VALIGN=TOP>
<P CLASS="western">9</P>
</TD>
</TR>
<TR>
<TD WIDTH=80 VALIGN=TOP>
<P CLASS="western">10</P>
</TD>
</TR>
<TR>
<TD WIDTH=80 VALIGN=TOP>
<P CLASS="western">11</P>
</TD>
</TR>
<TR>
<TD WIDTH=80 VALIGN=TOP>
<P CLASS="western">12</P>
</TD>
</TR>
<TR>
<TD WIDTH=80 VALIGN=TOP>
<P CLASS="western">13</P>
</TD>
</TR>
<TR>
<TD WIDTH=80 VALIGN=TOP>
<P CLASS="western">14</P>
</TD>
</TR>
</TABLE>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
Note open:</P>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
0 &ndash; There is XY coordinates in this note.</P>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
1 &ndash; Empty note.</P>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
<BR>
</P>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
Note closed:</P>
<P CLASS="western" style="margin-left: 1in; margin-bottom: 0in">
0 &ndash; The note closed by user or software.</P>
<P CLASS="western" STYLE="margin-left: 1.5in; margin-bottom: 0in">1 &ndash;
Note not closed.</P>
<P CLASS="western" STYLE="margin-left: 1.5in; margin-bottom: 0in"><BR>
</P>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
Note closed (software):</P>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
0 &ndash; Note not closed by user.</P>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
1 &ndash; else.</P>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
<BR>
</P>
<P CLASS="western" STYLE="margin-left: 1.5in; margin-bottom: 0in; page-break-before: always">
<U><B>Data:</B></U></P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><B>XY coordinates:</B>
4 Bytes</P>
<P CLASS="western" STYLE="margin-bottom: 0in">
</P>
<TABLE WIDTH=616 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=8 CELLSPACING=0>
<COL WIDTH=83>
<COL WIDTH=118>
<COL WIDTH=31>
<COL WIDTH=42>
<COL WIDTH=56>
<COL WIDTH=25>
<COL WIDTH=25>
<COL WIDTH=25>
<COL WIDTH=25>
<COL WIDTH=25>
<TR VALIGN=TOP>
<TD WIDTH=83>
<P CLASS="western">Byte number</P>
</TD>
<TD WIDTH=118>
<P CLASS="western" ALIGN=CENTER>Byte description</P>
</TD>
<TD WIDTH=31>
<P CLASS="western" ALIGN=CENTER>7</P>
</TD>
<TD WIDTH=42>
<P CLASS="western" ALIGN=CENTER>6</P>
</TD>
<TD WIDTH=56>
<P CLASS="western" ALIGN=CENTER>5</P>
</TD>
<TD WIDTH=25>
<P CLASS="western" ALIGN=CENTER>4</P>
</TD>
<TD WIDTH=25>
<P CLASS="western" ALIGN=CENTER>3</P>
</TD>
<TD WIDTH=25>
<P CLASS="western" ALIGN=CENTER>2</P>
</TD>
<TD WIDTH=25>
<P CLASS="western" ALIGN=CENTER>1</P>
</TD>
<TD WIDTH=25>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=83>
<P CLASS="western">1</P>
</TD>
<TD ROWSPAN=2 WIDTH=118>
<P CLASS="western">X coordinate</P>
</TD>
<TD COLSPAN=8 WIDTH=365>
<P CLASS="western" ALIGN=CENTER>Low</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=83>
<P CLASS="western">2</P>
</TD>
<TD COLSPAN=8 WIDTH=365>
<P CLASS="western" ALIGN=CENTER>High</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=83>
<P CLASS="western">3</P>
</TD>
<TD ROWSPAN=2 WIDTH=118>
<P CLASS="western">Y coordinate</P>
</TD>
<TD COLSPAN=8 WIDTH=365>
<P CLASS="western" ALIGN=CENTER>Low</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=83>
<P CLASS="western">4</P>
</TD>
<TD COLSPAN=8 WIDTH=365>
<P CLASS="western" ALIGN=CENTER>High</P>
</TD>
</TR>
</TABLE>
<P CLASS="western" STYLE="margin-bottom: 0in">
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><B>Pen up: </B>4
Bytes</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<TABLE WIDTH=616 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=8 CELLSPACING=0>
<COL WIDTH=83>
<COL WIDTH=118>
<COL WIDTH=32>
<COL WIDTH=32>
<COL WIDTH=32>
<COL WIDTH=32>
<COL WIDTH=32>
<COL WIDTH=32>
<COL WIDTH=32>
<COL WIDTH=31>
<TR VALIGN=TOP>
<TD WIDTH=83>
<P CLASS="western">Byte number</P>
</TD>
<TD WIDTH=118>
<P CLASS="western" ALIGN=CENTER>Byte description</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>7</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>6</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>5</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>4</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>3</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>2</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>1</P>
</TD>
<TD WIDTH=31>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=83>
<P CLASS="western">1</P>
</TD>
<TD ROWSPAN=4 WIDTH=118>
<P CLASS="western">Pen up</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=31>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=83>
<P CLASS="western">2</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=31>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=83>
<P CLASS="western">3</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=31>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=83>
<P CLASS="western">4</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>1</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=32>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
<TD WIDTH=31>
<P CLASS="western" ALIGN=CENTER>0</P>
</TD>
</TR>
</TABLE>
<P CLASS="western" STYLE="margin-bottom: 0in">
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><B><FONT SIZE=4>Memory
data structure example:</FONT></B></P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<TABLE WIDTH=616 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=8 CELLSPACING=0>
<COL WIDTH=51>
<COL WIDTH=52>
<COL WIDTH=52>
<COL WIDTH=52>
<COL WIDTH=52>
<COL WIDTH=52>
<COL WIDTH=52>
<COL WIDTH=52>
<COL WIDTH=52>
<TR VALIGN=TOP>
<TD WIDTH=51>
<P CLASS="western" ALIGN=CENTER>Note 1 header
</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER>XY</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER>XY</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER>XY</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER>XY</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER>&hellip;.</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER>Pen up</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER>XY</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER>XY</P>
</TD>
</TR>
</TABLE>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<TABLE WIDTH=616 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=8 CELLSPACING=0>
<COL WIDTH=51>
<COL WIDTH=52>
<COL WIDTH=52>
<COL WIDTH=52>
<COL WIDTH=52>
<COL WIDTH=52>
<COL WIDTH=52>
<COL WIDTH=52>
<COL WIDTH=52>
<TR VALIGN=TOP>
<TD WIDTH=51>
<P CLASS="western" ALIGN=CENTER>XY</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER>Pen up</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER>Note 2 header</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER>XY</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER>&hellip;.</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER>Pen up</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER>Note N header</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER><BR>
</P>
</TD>
<TD WIDTH=52>
<P CLASS="western" ALIGN=CENTER><BR>
</P>
</TD>
</TR>
</TABLE>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><U><B>Remark:</B></U></P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" style=" margin-bottom: 0in">1.
The last note will be empty note and the pointer for next note =
0xFFFFFF</P>
<P CLASS="western" STYLE="margin-bottom: 0in; page-break-before: always">
<FONT SIZE=4><U><B>Upload:</B></U></FONT></P>
<P CLASS="western" STYLE="margin-bottom: 0in">Upload data from device
memory.</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><U>Upload Sequence<B>:</B></U></P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<OL>
<LI><P CLASS="western" STYLE="margin-bottom: 0in"><I><B>Request
start of upload</B></I></P>
</OL>
<P CLASS="western" STYLE="margin-left: 0.25in; margin-bottom: 0in"><BR>
</P>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
Host <FONT FACE="Wingdings">&#61664;</FONT> Device</P>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
<BR>
</P>
<DL>
<DL>
<DL>
<DD>
<TABLE WIDTH=101 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=8 CELLSPACING=0>
<COL WIDTH=83>
<TR>
<TD WIDTH=83 VALIGN=TOP>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in">Upload</P>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in">Command</P>
<P CLASS="western" ALIGN=CENTER>(1 Byte)</P>
</TD>
</TR>
<TR>
<TD WIDTH=83 VALIGN=TOP>
<P CLASS="western" ALIGN=CENTER>0xB5</P>
</TD>
</TR>
</TABLE>
</DL>
</DL>
</DL>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
<BR>
</P>
<OL START=2>
<LI><P CLASS="western" STYLE="margin-bottom: 0in"><I><B>Device sends
the number of data packets to host.</B></I></P>
</OL>
<P CLASS="western" STYLE="margin-left: 0.25in; margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-left: 1in; margin-bottom: 0in">Device
<FONT FACE="Wingdings">&#61664;</FONT> Host	</P>
<P CLASS="western" STYLE="margin-left: 1in; margin-bottom: 0in">
</P>
<DL>
<DL>
<DD>
<TABLE WIDTH=526 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=8 CELLSPACING=0>
<COL WIDTH=46>
<COL WIDTH=47>
<COL WIDTH=47>
<COL WIDTH=47>
<COL WIDTH=47>
<COL WIDTH=34>
<COL WIDTH=42>
<COL WIDTH=39>
<COL WIDTH=34>
<TR VALIGN=TOP>
<TD COLSPAN=5 WIDTH=296>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in">Signature</P>
<P CLASS="western" ALIGN=CENTER>(5 Bytes)</P>
</TD>
<TD COLSPAN=2 WIDTH=92>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in">Number
of packets</P>
<P CLASS="western" ALIGN=CENTER>(2 Bytes)</P>
</TD>
<TD COLSPAN=2 WIDTH=88>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in">Signature</P>
<P CLASS="western" ALIGN=CENTER>(2 Bytes)</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=46>
<P CLASS="western" ALIGN=CENTER>0xAA</P>
</TD>
<TD WIDTH=47>
<P CLASS="western" ALIGN=CENTER>0xAA</P>
</TD>
<TD WIDTH=47>
<P CLASS="western" ALIGN=CENTER>0xAA</P>
</TD>
<TD WIDTH=47>
<P CLASS="western" ALIGN=CENTER>0xAA</P>
</TD>
<TD WIDTH=47>
<P CLASS="western" ALIGN=CENTER>0xAA</P>
</TD>
<TD WIDTH=34>
<P CLASS="western" ALIGN=CENTER>High</P>
</TD>
<TD WIDTH=42>
<P CLASS="western" ALIGN=CENTER>Low</P>
</TD>
<TD WIDTH=39>
<P CLASS="western" ALIGN=CENTER>0x55</P>
</TD>
<TD WIDTH=34>
<P CLASS="western" ALIGN=CENTER>0x55</P>
</TD>
</TR>
</TABLE>
</DL>
</DL>
<P CLASS="western" STYLE="margin-left: 1in; margin-bottom: 0in"><BR>
</P>
<OL START=3>
<LI><P CLASS="western" STYLE="margin-bottom: 0in"><I><B>Host sends
an ACK for receiving the data packets or NACK for cancel upload to
device. </B></I>
</P>
</OL>
<P CLASS="western" STYLE="margin-left: 0.25in; margin-bottom: 0in"><BR>
</P>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
Host <FONT FACE="Wingdings">&#61664;</FONT> Device</P>
<P CLASS="western" STYLE="margin-left: 0.25in; margin-bottom: 0in"><BR>
</P>
<DL>
<DL>
<DL>
<DD>
<TABLE WIDTH=101 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=8 CELLSPACING=0>
<COL WIDTH=83>
<TR>
<TD WIDTH=83 VALIGN=TOP>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in">ACK</P>
<P CLASS="western" ALIGN=CENTER>(1 Byte)</P>
</TD>
</TR>
<TR>
<TD WIDTH=83 VALIGN=TOP>
<P CLASS="western" ALIGN=CENTER>0xB6</P>
</TD>
</TR>
</TABLE>
</DL>
</DL>
</DL>
<P CLASS="western" STYLE="margin-left: 0.25in; margin-bottom: 0in"><BR>
</P>
<DL>
<DL>
<DL>
<DD>
<TABLE WIDTH=101 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=8 CELLSPACING=0>
<COL WIDTH=83>
<TR>
<TD WIDTH=83 VALIGN=TOP>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in">NACK</P>
<P CLASS="western" ALIGN=CENTER>(1 Byte)</P>
</TD>
</TR>
<TR>
<TD WIDTH=83 VALIGN=TOP>
<P CLASS="western" ALIGN=CENTER>0xB7</P>
</TD>
</TR>
</TABLE>
</DL>
</DL>
</DL>
<P CLASS="western" STYLE="margin-left: 0.5in; margin-bottom: 0in"><BR>
</P>
<OL START=4>
<LI><P CLASS="western" STYLE="margin-bottom: 0in"><I><B>Device sends
upload data to host</B>.</I></P>
</OL>
<P CLASS="western" STYLE="margin-left: 0.25in; margin-bottom: 0in"><BR>
</P>
<P CLASS="western" style="margin-left: 0.75in; margin-bottom: 0in">
Device <FONT FACE="Wingdings">&#61664;</FONT> Host</P>
<P CLASS="western" style="margin-left: 0.75in; margin-bottom: 0in">
<BR>
</P>
<DL>
<DL>
<DD>
<TABLE WIDTH=526 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=8 CELLSPACING=0>
<COL WIDTH=46>
<COL WIDTH=47>
<COL WIDTH=384>
<TR VALIGN=TOP>
<TD COLSPAN=2 WIDTH=108>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in">Packet
number</P>
<P CLASS="western" ALIGN=CENTER>(2 Bytes)</P>
</TD>
<TD WIDTH=384>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in">Data</P>
<P CLASS="western" ALIGN=CENTER>(62 Bytes)</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD COLSPAN=2 WIDTH=108>
<P CLASS="western" ALIGN=CENTER>N</P>
</TD>
<TD ROWSPAN=2 WIDTH=384>
<P CLASS="western" ALIGN=CENTER>Upload Data</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=46>
<P CLASS="western" ALIGN=CENTER>High</P>
</TD>
<TD WIDTH=47>
<P CLASS="western" ALIGN=CENTER>Low</P>
</TD>
</TR>
</TABLE>
</DL>
</DL>
<P CLASS="western" style="margin-left: 1.25in; margin-bottom: 0in">
<B>N</B> &ndash; Sequence number, each packet gets a sequence
number(starting with 1), e.g. the first packet gets sequence number
1, the second 2 etc..</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in">	<B>Upload Data</B> &ndash;
Data of all notes (header and data) from memory.
</P>
<P CLASS="western" STYLE="margin-left: 2in; margin-bottom: 0in">e.g.
packet number 1 will contain data form address 0 to 61 in the memory,
packet number will contain data form address 62 to 123 in the memory
etc.
</P>
<P CLASS="western" STYLE="margin-left: 0.25in; margin-bottom: 0in"><BR>
</P>
<OL START=5>
<LI><P CLASS="western" STYLE="margin-bottom: 0in"><B><I>Packets
retransmission</I>.</B></P>
</OL>
<P CLASS="western" STYLE="margin-left: 0.25in; margin-bottom: 0in"><BR>
</P>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
Host <FONT FACE="Wingdings">&#61664;</FONT> Device</P>
<P CLASS="western" STYLE="margin-left: 1in; margin-bottom: 0in"><BR>
</P>
<P CLASS="western" style="margin-left: 0.25in; margin-bottom: 0in">
<B><I>5.a.</I></B> In case all packets have been received
successfully, the host sends an ACK</P>
<P CLASS="western" style="margin-left: 0.25in; margin-bottom: 0in">
response and the upload sequence is complete.</P>
<P CLASS="western" style="margin-left: 0.25in; margin-bottom: 0in">
<BR>
</P>
<DL>
<DL>
<DL>
<DD>
<TABLE WIDTH=101 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=8 CELLSPACING=0>
<COL WIDTH=83>
<TR>
<TD WIDTH=83 VALIGN=TOP>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in">ACK</P>
<P CLASS="western" ALIGN=CENTER>(1 Byte)</P>
</TD>
</TR>
<TR>
<TD WIDTH=83 VALIGN=TOP>
<P CLASS="western" ALIGN=CENTER>0xB6</P>
</TD>
</TR>
</TABLE>
</DL>
</DL>
</DL>
<P CLASS="western" style="margin-left: 0.25in; margin-bottom: 0in">
<BR>
</P>
<P CLASS="western" STYLE="margin-left: 0.5in; margin-bottom: 0in"><B><I>5.b.</I></B>
In case some packets have been lost the host sends a NACK response
with</P>
<P CLASS="western" STYLE="margin-left: 0.5in; margin-bottom: 0in">
the lost packet number.</P>
<P CLASS="western" STYLE="margin-left: 0.5in; margin-bottom: 0in"><BR>
</P>
<DL>
<DL>
<DL>
<DD>
<TABLE WIDTH=301 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=8 CELLSPACING=0>
<COL WIDTH=83>
<COL WIDTH=84>
<COL WIDTH=84>
<TR VALIGN=TOP>
<TD WIDTH=83>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in">NACK</P>
<P CLASS="western" ALIGN=CENTER>(1 Byte)</P>
</TD>
<TD COLSPAN=2 WIDTH=184>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in">Lost
packet number</P>
<P CLASS="western" ALIGN=CENTER>(2 Byte)</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD ROWSPAN=2 WIDTH=83>
<P CLASS="western" ALIGN=CENTER>0xB7</P>
</TD>
<TD COLSPAN=2 WIDTH=184>
<P CLASS="western" ALIGN=CENTER>X</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=84>
<P CLASS="western" ALIGN=CENTER>High</P>
</TD>
<TD WIDTH=84>
<P CLASS="western" ALIGN=CENTER>Low</P>
</TD>
</TR>
</TABLE>
</DL>
</DL>
</DL>
<P CLASS="western" STYLE="margin-left: 0.5in; margin-bottom: 0in"> X
&ndash; Lost packet number.</P>
<P CLASS="western" STYLE="margin-left: 0.5in; margin-bottom: 0in"><BR>
</P>
<OL START=6>
<LI><P CLASS="western" STYLE="margin-bottom: 0in"><I><B>Device send
the lost packet to host (return to stage 5).</B></I></P>
</OL>
<P CLASS="western" STYLE="margin-left: 0.25in; margin-bottom: 0in"><BR>
</P>
<P CLASS="western" style="margin-left: 0.75in; margin-bottom: 0in">
Device <FONT FACE="Wingdings">&#61664;</FONT> Host</P>
<P CLASS="western" style="margin-left: 0.75in; margin-bottom: 0in">
<BR>
</P>
<DL>
<DL>
<DD>
<TABLE WIDTH=526 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=8 CELLSPACING=0>
<COL WIDTH=46>
<COL WIDTH=47>
<COL WIDTH=384>
<TR VALIGN=TOP>
<TD COLSPAN=2 WIDTH=108>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in">Packet
number</P>
<P CLASS="western" ALIGN=CENTER>(2 Bytes)</P>
</TD>
<TD WIDTH=384>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0in">Data</P>
<P CLASS="western" ALIGN=CENTER>(62 Bytes)</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD COLSPAN=2 WIDTH=108>
<P CLASS="western" ALIGN=CENTER>X</P>
</TD>
<TD ROWSPAN=2 WIDTH=384>
<P CLASS="western" ALIGN=CENTER>Upload Data</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=46>
<P CLASS="western" ALIGN=CENTER>High</P>
</TD>
<TD WIDTH=47>
<P CLASS="western" ALIGN=CENTER>Low</P>
</TD>
</TR>
</TABLE>
</DL>
</DL>
<P CLASS="western" style="margin-left: 0.5in; margin-bottom: 0in">
X &ndash; Lost packet number.</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><BR>
</P>
<br>
<br clear="all"/>
</div>
<div id="google-view-footer">
<div id="maybecanedit" style="float:right">
<a class="google-small-link"
           id="editpermissionlink"
           
             href="Edit?tab=edit&dr=true&docid=dqswcdk_6qtgc8wgn"
           
           title="Edit this page">
Edit this page (if you have permission)</a>
<span style="color:#676767;">|</span>
<input id="report-abuse-button" type="button"
         value="Report abuse" onclick="reportAbuse();">
</div>
<div style="float:left">
<a title="Learn more about Google Docs"
            class="google-small-link"
            href="/">
Google Docs -- Web word processing, presentations and spreadsheets.</a>
</div>
<p> &nbsp;
</div>
<script><!--
    viewOnLoad();
    
    
    var urchinPage = "/View";

    
    function getXHR() {
      if (typeof XMLHttpRequest != "undefined") {
        return new XMLHttpRequest();
      }
      try { return new ActiveXObject("Msxml2.XMLHTTP.6.0") } catch(e) {}
      try { return new ActiveXObject("Msxml2.XMLHTTP.3.0") } catch(e) {}
      try { return new ActiveXObject("Msxml2.XMLHTTP") } catch(e) {}
      try { return new ActiveXObject("Microsoft.XMLHTTP") } catch(e) {}
      return null;
    }

    function reportAbuse() {
      var req = getXHR();
      if (req) {
        
          var docid = 'dqswcdk_6qtgc8wgn';
          var posttoken = '';
        
        req.onreadystatechange = function() {
          try {
            if (req.readyState == 4 && req.status == 200) {
              var button = document.getElementById("report-abuse-button");
              button.value = 'Thank you!';
              button.disabled = true;
            }
          } catch (ex) {
            
          }
        }
        try {
          req.open('POST', 'MiscCommands', true);
          req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
          req.send('command=report_abuse&abuseDoc=' + encodeURIComponent(docid) +
                   '&POST_TOKEN=' + encodeURIComponent(posttoken));
        } catch (ex) {
          
        }
      }
    }
  --></script>
</body>
</html>
